package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 设备报警记录表
 *
 * @author code-generate
 * @date 2021-09-06
 */
@Data
@DbTable(tableName = "t_device_warning")
public class DeviceWarning extends BaseEntity {
        /**
     * 设备编号
     */
    @DbTableField(columnName = "c_device_code", dbType = DbTypeEnum.VARCHAR)
    public String deviceCode ;

    /**
     * 设备类型id
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.VARCHAR)
    public String type ;

    /**
     * 设备类型名称
     */
    @DbTableField(columnName = "c_type_name", dbType = DbTypeEnum.VARCHAR)
    public String typeName ;

    @DbTableField(columnName = "c_lng", dbType = DbTypeEnum.DOUBLE)
    public Double lng;

    @DbTableField(columnName = "c_lat", dbType = DbTypeEnum.DOUBLE)
    public Double lat;

    /**
     * 告警类型id
     */
    @DbTableField(columnName = "c_warning_type_id", dbType = DbTypeEnum.VARCHAR)
    public String warningTypeId ;

    /**
     * 告警类型名称
     */
    @DbTableField(columnName = "c_warning_type_Name", dbType = DbTypeEnum.VARCHAR)
    public String warningTypeName ;

    @DbTableField(columnName = "c_warning_desc", dbType = DbTypeEnum.VARCHAR)
    public String warningDesc;

    @DbTableField(columnName = "c_warning_status", dbType = DbTypeEnum.INTEGER)
    public Integer warningStatus;

    @DbTableField(columnName = "c_main_id", dbType = DbTypeEnum.INTEGER)
    public Integer mainId;

    /**
     * 案件号
     */
    @DbTableField(columnName = "c_event_code", dbType = DbTypeEnum.VARCHAR)
    public String eventCode ;

    /**
     * 创建时间
     */
//    @DbTableField(columnName = "c_db_create_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime dbCreateDate ;

    /**
     *   对应t_sys_user.c_id
     */
//    @DbTableField(columnName = "c_db_create_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbCreateId ;

    /**
     * 最后更新时间
     */
//    @DbTableField(columnName = "c_db_last_update_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime dbLastUpdateDate ;

    /**
     *  对应t_sys_user.c_id
     */
//    @DbTableField(columnName = "c_db_last_update_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbLastUpdateId ;


}
